package com.million.eduservice.service;

import com.million.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.million.eduservice.entity.vo.chapter.ChapterVo;


import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 十麓
 * @since 2022-03-24
 */
public interface EduChapterService extends IService<EduChapter> {

    /**
     * 通过课程id 查询章节和小节
     * @param courseId 传过来的课程id
     * @return 返回所有的课程及下面的章节和小节
     */
    List<ChapterVo> getChapterVideoByCourseId (String courseId);

    //删除章节方法
    boolean deleteChapter (String chapterId);

    //修改章节方法，返回ChapterVo
    void updateChapter (ChapterVo chapterVo);

    //根据课程id 删除章节信息
    void removeChapterById (String courseId);
}
